<template>
  <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
    <van-swipe-item v-for="item in bannerList" :key="item.bannerid">
      <img :src="item.img" alt="" />
    </van-swipe-item>
  </van-swipe>
</template>

<script>
export default {
  props: ["bannerList"],
};
</script>

<style scoped>
.my-swipe .van-swipe-item {
  height: 9.375rem;
  font-size: 1.25rem;
  line-height: 1.25rem;
  text-align: center;
  margin-bottom: 1.25rem;
  margin-top: 1.25rem;
}
.my-swipe .van-swipe-item > img {
  height: 100%;
  border-radius: 0.9375rem;
}
</style>
